package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 交易流水表
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
@TableName("t_account_tixian")
public class AccountTixian extends Model<AccountTixian> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 流水号
     */
    private String sn;
    @JsonIgnore
    private Long uid;
    @JsonIgnore
    private Long mid;
    @JsonIgnore
    private Long mpid;
    @JsonIgnore
    private Long sid;
    @JsonIgnore
    private Long leagueid;
    @JsonIgnore
    private Long modifier;

    /**
     * 金额
     */
    private BigDecimal money;

//    /**
//     * 1：已入账；0：待入账
//     */
//    @TableField("is_confirm")
//    private Integer isConfirm;

//    提现类型@1：线上；2：线下
    private Integer txtype;
//    提现类型@1：现金提现；2：积分兑换提现
    private Integer qtype;

//    状态@1：申请中；2：通过；3：拒绝
    private Integer status;

    private String transactionid;

    private String remark;

    /**
     * 交易时间
     */
    private Date tradetime;

    private String nickname;
    private String phone;
    private String headimg;

    @JsonIgnore
    private Date createtime;
    @JsonIgnore
    private Date modifytime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Long getMpid() {
        return mpid;
    }

    public void setMpid(Long mpid) {
        this.mpid = mpid;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Integer getTxtype() {
        return txtype;
    }

    public void setTxtype(Integer txtype) {
        this.txtype = txtype;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTransactionid() {
        return transactionid;
    }

    public void setTransactionid(String transactionid) {
        this.transactionid = transactionid;
    }

    public Date getTradetime() {
        return tradetime;
    }

    public void setTradetime(Date tradetime) {
        this.tradetime = tradetime;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getQtype() {
        return qtype;
    }

    public void setQtype(Integer qtype) {
        this.qtype = qtype;
    }

    public Long getLeagueid() {
        return leagueid;
    }

    public void setLeagueid(Long leagueid) {
        this.leagueid = leagueid;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AccountTixian{" +
                "id=" + id +
                ", sn='" + sn + '\'' +
                ", uid=" + uid +
                ", mid=" + mid +
                ", mpid=" + mpid +
                ", sid=" + sid +
                ", modifier=" + modifier +
                ", money=" + money +
                ", txtype=" + txtype +
                ", status=" + status +
                ", transactionid='" + transactionid + '\'' +
                ", tradetime=" + tradetime +
                ", nickname='" + nickname + '\'' +
                ", phone='" + phone + '\'' +
                ", headimg='" + headimg + '\'' +
                ", createtime=" + createtime +
                ", modifytime=" + modifytime +
                '}';
    }
}
